import h from './mySnabbdom/h.js';
import patch from './mySnabbdom/patch.js';
const container = document.getElementById('container');
const myVnode1 = h('ul', {}, [
    h('li', { key: 'A' }, 'A'),
    h('li', { key: 'B' }, 'B'),
    h('li', { key: 'C' }, 'C'),
]);
patch(container, myVnode1);
const myVnode2 = h('ul', {}, [
    h('li', { key: 'D' }, 'Q'),
    h('li', { key: 'A' }, 'A'),
    h('li', { key: 'C' }, 'G'),
    h('li', { key: 'O' }, 'O'),
    h('li', { key: 'P' }, 'P'),

]);
const btn = document.getElementById('btn');
btn ? btn.addEventListener('click', function(e) {
    patch(myVnode1, myVnode2);
}) : '';